package com.t235.gc.mapper;

import com.t235.gc.entity.SysManager;
import com.t235.gc.managerVo.SysManagerVo;
import com.t235.gc.shenhe.ManagerAndRecordVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysManagerMapper {
    int deleteByPrimaryKey(String managerid);

    int insert(SysManager record);

    int insertSelective(SysManager record);

    SysManager selectByPrimaryKey(String managerid);

    int updateByPrimaryKeySelective(SysManager record);

    int updateByPrimaryKey(SysManager record);

    SysManager FindByUsername(String username);

    List<SysManager> selectByManagerType(int managerType);

    List<ManagerAndRecordVo> selectFen(ManagerAndRecordVo managerAndRecordVo);

    Integer updateStatus(Integer cashId);

    int updateStatusAndNayReason(Integer cashId, String nayReason);

    List<SysManagerVo> selectBySorting(@Param("sysManagerVo") SysManagerVo sysManagerVo,
                                       @Param("pageNum")int pageNum, @Param("pageSize") int pageSize);

    int selectBySortingCount(@Param("sysManagerVo")SysManagerVo sysManagerVo);

    List<SysManagerVo> selectBySortingNum();

}